import { createStore } from "vuex";

let store = createStore({
    state:{
        sname:"jackson"
    },
    mutations:{
        updateSname(state){
            state.sname = "呵呵呵"
            console.log("调用方法")
        },
        updateSname2(state){
            state.sname = "呵呵呵2"
            console.log("调用方法2")
        }
    }
})

export default store;